#!/usr/bash

prep() {
%setup -q -n linux-headers-4.19.88-1

}

install() {
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	prefix=%{_prefix}-musl \
	DESTDIR=$RPM_BUILD_ROOT \
	ARCH=%{target_arch}

install -d $RPM_BUILD_ROOT%{_includedir}
%{__mv} $RPM_BUILD_ROOT%{_prefix}-musl/include $RPM_BUILD_ROOT%{_includedir}/musl

install -d $RPM_BUILD_ROOT%{_includedir}/musl/sys
cp -a %{_includedir}/sys/queue.h $RPM_BUILD_ROOT%{_includedir}/musl/sys/queue.h

}

clean() {
rm -rf $RPM_BUILD_ROOT

}

